﻿using GetSmartIDEList.Lib.Common;
using GetSmartIDEList.Models;
using GetSmartIDEList.WebAPI.Common;
using GetSmartIDEList.WebAPI.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;

namespace GetSmartIDEList.WebAPI.Controllers
{
    /// <summary>
    /// 获取详情接口
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class GetDetalisController : ControllerBase
    {

        /// <summary>
        /// 获取详情数据
        /// </summary>
        /// <param name="names">需要获取数据的IDE名称</param>
        /// <returns></returns>
        //[HttpGet(template: "{id}/{names}")]

        [AcceptVerbs("Post")]
        [HttpPost]
        public IEnumerable<resultData> GetDetalis([FromBody] dynamic names)
        {
            return CurrentListFunction.GetDetalisByNames(names);
        }

    }
}
